<?php
/**
 * Created by PhpStorm.
 * User: Jerry
 * Date: 2017/3/15
 * Time: 11:10
 */

namespace SDXApi\Model;


use Think\Model;

/**
 * Class AlbumTextModel
 * @package SDXApi\Model
 */
class AlbumTemplateTextModel extends Model
{
	/**
	 * @var string
	 */
	protected $tableName = 'album_template_text';


	/**
	 * Created by Jerry
	 * @param int $templateId
	 * @return mixed
	 */
	public function findAlbumTextByTemplateId($templateId = 0)
	{
		$where = array(
			'template_id'	=>	$templateId,
		);

		return $this->where($where)->find();
	}
}